package com.funtl.oauth2.service.impl;

import com.funtl.oauth2.entity.TbPermission;
import com.funtl.oauth2.mapper.TbPermissionMapper;
import com.funtl.oauth2.service.TbPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: wumz
 * @Date: 2020/8/7 14:42
 * @Version 1.0
 */

@Service
@SuppressWarnings("all")
public class TbPermissionServiceImpl implements TbPermissionService {

    @Autowired
    private TbPermissionMapper tbPermissionMapper;

    @Override
    public List<TbPermission> getTbPermissionByUserId(Long userId) {
        List<TbPermission> list = tbPermissionMapper.getTbPermissionByUserId(userId);
        return list;
    }
}
